#pragma once
#include "CoCElement.h"

class CoCElementTexture :
	public CoCElement
{
public:
	CoCElementTexture(void);
	~CoCElementTexture(void);
		
	virtual bool Parse(void *data, CoCSWF *pSWF);
	int GetTextureBpp();
    Texture2D::PixelFormat GetTextureFormat();
	int GetDataSize();
	unsigned short GetWidth();
	unsigned short GetHeight();
	void SaveToFile(const char *pName);
	Texture2D *getTexture();

private:
	char m_cTextureFormat;
	unsigned short m_nWidth;
	unsigned short m_nHeight;
    Texture2D *m_pTexture;
    void *m_pTextureData;
};

